﻿using System;
using System.Data;
using Library.OrmEnterpriseEntity.TableInfo;

namespace Library.OrmEnterpriseEntity {
	/// <summary>
	/// 
	/// </summary>
	public class CustomValueParseEventArgs : EventArgs {

		internal CustomValueParseEventArgs(string text, DbColumnView columnView) {
			Text = text;
			Column = columnView;
		}
		/// <summary>
		/// Text need to parse
		/// </summary>
		public string Text { get; private set; }
		
		/// <summary>
		/// Column for the text
		/// </summary>
		public DbColumnView Column { get; private set; }

		/// <summary>
		/// true if user handle parser
		/// </summary>
		public bool Handled { get; set; }
		/// <summary>
		/// Value after parse text
		/// </summary>
		public object Value { get; set; }
	}
}
